﻿/*
{
"状态":1,
"名称":"获取-字典主表资料",
"作者":"陈泽椿",
"创建时间":"2018-06-30",
"功能":"获取-字典主表资料",
"log": [
	{"date":"06-01" , "dev" :"hzhh" , "content" : ""}
]
}
*/
declare @sql varchar(max)
declare @where varchar(max)
set @where = ''

set @sql = '
select dict_key,dict_name,dict_type,convert(varchar(20),create_time,120)create_time,
convert(varchar(20),update_time,120)update_time from y_dict_master where 1=1 {where} '
set @sql =replace(@sql,'{where}',@where)

exec(@sql)